Skip to content

NYL-22: Add Contact metadata and webhook parity - #485

Merged
quzhi1 merged 2 commits into
mainfrom
codex/NYL-22-contacts-sdk-parity
Aug 28, 2026
Merged

NYL-22: Add Contact metadata and webhook parity#485
quzhi1 merged 2 commits into
mainfrom
codex/NYL-22-contacts-sdk-parity

Conversation

@quzhi1

@quzhi1 quzhi1 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add Contact metadata request/response models and metadata_pair contact filtering
  • document metadata replace, preserve, and clear behavior plus provider webhook support boundaries
  • verify the existing contact.updated and contact.deleted wire values and guard against unsupported contact.created

Test plan

  • /Users/zhi.q/nylas-python/.venv/bin/python -m pytest (485 passed, 3 deselected)

@AaronDDM AaronDDM left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good morning! Looks good — models, docstrings, changelog and tests all covered, and the enum already had the contact triggers so the docstring-only change there is right.

One suggestion below. Approving.

Comment thread tests/resources/test_contacts.py

@AaronDDM AaronDDM left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good morning! Re-reviewed after 6406a73.

The _build_query_params test is exactly what was missing — that's the piece that could have silently regressed. UpdateContactRequest is an alias of CreateContactRequest, so metadata covers both paths. CHANGELOG has an Unreleased entry and the docstrings cover the update semantics.

One non-blocking cross-SDK note below. Approving.

Comment thread tests/handler/test_http_client.py
@quzhi1
quzhi1 merged commit b7a7880 into main Aug 28, 2026
8 checks passed
@quzhi1
quzhi1 deleted the codex/NYL-22-contacts-sdk-parity branch August 28, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants